module VersionView
  class BuildInfoController < ApplicationController
    def get_data
      
      version = VersionView::BuildInfo.version
             
      respond_to do |format|
        format.json {
          render :json => {:version => version} 
        }
      
        format.text {
          data = "version: #{version}"
          render :text => data
        }
      end        
    end

  end
end
